﻿using FFIV.Lib.Controlers.Articles;
using FFIV.Lib.Model;
using FFIV.Lib.Utilities;
using FFIV.Lib.WebExtension;

public partial class Articles_Detail : FFWebPageBase
{
	private DetailController m_Controller;

	protected override void InitialFileds()
	{
		m_Controller = new DetailController(uc_ArticleDetails, uc_ArticleMiniList);
	}

	protected override void BindingEvents()
	{
		uc_ArticleMiniList.RegisteEvents();
	}

	public override void ShowMessage()
	{
		m_Controller.LoadPage();
		LoadHtmlHeader();
	}

	public override Permissions RequiredPermission
	{
		get { return Permissions.Anonymous; }
	}

	public void LoadHtmlHeader()
	{
		uc_HtmlHeader.HeaderInfo = m_Controller.GetHeaderInfo();
		Master.FindControl("uc_Login");
	}
}
